const { DataTypes } = require('sequelize')
const seq = require('../db/seq')
const Addr = seq.define('addr', {
    user_id: {
        type: DataTypes.INTEGER,
        allowNull: false
    },
    consinee: {
        type: DataTypes.STRING,
        allowNull: false,
    },
    phone: {
        type: DataTypes.STRING,
        allowNull: false
    },
    address: {
        type: DataTypes.STRING,
        allowNull: false
    },
    is_default: {
        type: DataTypes.BOOLEAN,
        allowNull: false,
        defaultValue: false
    }
})

// Addr.sync({ force: true })
module.exports = Addr